package com.yanmaohu.yulia.bean;

import com.yanmaohu.yulia.token.Token;

/**
 * @author Bright Lee
 */
public final class Identifier implements ExternalRoutineName, MemberNameAlternatives, SqlStatementName, TableOrQueryName, WindowNameOrSpecification {

    private final int beginIndex;
    private final int endIndex;
    private final String content;

    public Identifier(Token token) {
        this.beginIndex = token.getBeginIndex();
        this.endIndex = token.getEndIndex();
        this.content = token.getContent();
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public String getContent() {
        return content;
    }
    
}
